{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">用户ID</label>
        <div class="layui-input-block">
            <input id="c-member_id" lay-verify="" data-source="admin/member/index" class="selectpage layui-input" name="row[member_id]" type="text" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">订单编号</label>
        <div class="layui-input-block">
            <input id="c-out_trade_no" lay-verify="required" class=" layui-input" name="row[out_trade_no]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">vip名称</label>
        <div class="layui-input-block">
            <input id="c-vip_name" lay-verify="required" class=" layui-input" name="row[vip_name]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员分组名称</label>
        <div class="layui-input-block">
            <input id="c-vip_type_name" lay-verify="required" class=" layui-input" name="row[vip_type_name]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">vip类型</label>
        <div class="layui-input-block">
            <input id="c-vip_type" lay-verify="required" class=" layui-input" name="row[vip_type]" type="text">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">日期数量</label>
        <div class="layui-input-block">
            <input id="c-vip_nums" lay-verify="required" class=" layui-input" name="row[vip_nums]" type="number">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付金额</label>
        <div class="layui-input-block">
            <input id="c-pay_amount" lay-verify="required" class=" layui-input" step="0.01" name="row[pay_amount]" type="number">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">服务内容</label>
        <div class="layui-input-block">
            <textarea id="c-package_content" lay-verify="required" class="editor layui-textarea" rows="5" name="row[package_content]" cols="50"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">0:未支付。1:已支付</label>
        <div class="layui-input-block">
            <input id="c-status" lay-verify="required" class=" layui-input" name="row[status]" type="number">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">支付时间</label>
        <div class="layui-input-block">
            <input id="c-pay_time" lay-verify="required" class="datetime layui-input" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">三方订单编号</label>
        <div class="layui-input-block">
            <input id="c-transaction_id" lay-verify="" data-source="admin/transaction/index" class="selectpage layui-input" name="row[transaction_id]" type="text" value="">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员ID</label>
        <div class="layui-input-block">
            <input id="c-vip_id" lay-verify="" data-source="admin/vip/index" class="selectpage layui-input" name="row[vip_id]" type="text" value="">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}